<template>
  <div class="bottom">
			<div class="center">
				<div class="shenghui">
					<div
						class="small"
						v-for="(item, index) in address"
						:key="index"
						@childClick ="childClick ($event)"
					>
						{{ item.provincial }}
					</div> 
					
					
				</div>
			</div>
		</div>
</template>

<script>
import { Notice } from "@/api/index"
export default {
    data(){
        return{
            address:[],
        }
    },
      //各省会发送请求的
	created() {
		Notice().then((res) => {
			this.address = res.data
       
 })
	},
	methods:{
         childClick(v){
           console.log(v) //123
         }
	
}
}
</script>

<style scoped>
 .bottom {
	width: 100%;
	min-height: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 0.05rem;
}

.bottom .center {
	width: 98%;
	height: 100%;
	margin-top: 0.05rem;
}
/* 省会区域 */
.shenghui {
	display: flex;
	flex-wrap: wrap;	
}
.small{
    min-width: 0.5rem;
	height: 0.3rem;
	flex-shrink: 0;
	text-align: center;
	line-height: 0.3rem;
	font-weight: 700;
	margin: 4px;
}
</style>